<template>
  <div>
    <el-dialog
      v-if="from"
      :title="from.title"
      :visible.sync="from.show"
      :modal="false"
      :width="from.width ? from.width:'30%'"
      :before-close="()=>from.show=false">
        <common-form :form="from.from"></common-form>
    </el-dialog>
  </div>
</template>

<script>
  import CommonForm from '../commonForm'
  export default {
    name:'commonDialogForm',
    components:{CommonForm},
    props:{
      from:null,
    }

  }

</script>

<style scoped>

</style>
